package TP01.a;

import java.util.Scanner;

public class Test {

    public static void main(String[] args) {
        Scanner keyboard = new Scanner(System.in);
        System.out.println("Ingrese número");

        int numero = keyboard.nextInt();
        
        System.out.println(obtener(numero, 24, 98, 100));

    }

    static double obtener(int x, int a, int c, int m) {
        double provisorio = (a * x + c) % m;

        return (provisorio / m);
    }
}
